<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content=""/>
    <meta name="author" content=""/>
    <link rel="icon" href="./img/asset-favicon.ico"/>
    <title>社交-吐槽</title>
    <!-- 页面 css js -->
    <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-base.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/bootstrap/dist/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/page-sj-spit-index.css"/>
    <style>
         /* 分页样式 */
        .pagenation{height:32px;text-align:center;font-size:0;margin:30px auto;}
        .pagenation a{display:inline-block;border:1px solid #d2d2d2;background-color:#f8f6f7;font-size:12px;padding:7px 10px;color:#666;margin:5px}
        .pagenation .active{background-color:#fff;color:#43a200}
    </style>
    <script>
        var user_id = sessionStorage.user_id || localStorage.user_id;
        var token = sessionStorage.token || localStorage.token;
        if (!(user_id && token)) {
            location.href = '/person-loginsign.html';
        }
    </script>
</head>
<body>
<div class="wrapper">
    <!--引用组件-->
    <div id="nav"></div>
    <!--头部导航-->
    <div class="wrapper tag-item">
        <div class="fl left-list" id="app">
            <div class="tc-data-list">
                <div class="tc-list">
                    <ul class="detail-list">
                        <li class="qa-item" v-for="spt in spit">
                            <div class="fl record">
                                <div class="number">
                                    <div class="border useful">
                                        <p class="usenum">
                                            <span class="zan" @click="like_spit(spt.id)">
                                            <i class="fa fa-thumbs-up" aria-hidden="true"></i>
                                            </span>
                                            </p>
                                        <p class="zannum"> {{ spt.like_count }} </p>
                                    </div>
                                    <div class="border answer">
                                        <a href="#" class="star" @click="spit_collect(spt.id)"><i class="fa fa-star-o" aria-hidden="true"></i></a>
                                    </div>
                                </div>
                            </div>
                            <div class="info">
                                <p class="text"><a :href="'./spit-detail.html?id='+spt.id" target="_blank">
                                    {{ spt.content }} </a>
                                </p>
                                <div class="other">
                                    <div class="fl date">
                                        <span>{{ spt.create_time | str2date | date2ymd }} {{ spt.create_time | str2date | date2hm }}</span>
                                    </div>
                                    <div class="fr remark">
                                        <a href="#" data-toggle="modal" data-target="#shareModal" class="share"><i
                                                class="fa fa-share-alt" aria-hidden="true"></i> 分享</a>
                                        <a :href="'./spit-detail.html?id='+spt.id" data-toggle="modal" data-target="#remarkModal" class="comment"><i class="fa fa-commenting" aria-hidden="true"></i> 回复</a>
                                    </div>
                                </div>
                            </div>
                            <div class="clearfix"></div>
                        </li>
                    </ul>
                </div>
                <div class="pagenation">
                    <a v-show="previous" @click="on_page(previous)">上一页</a>
                    <a v-for="num in page_nums" @click="on_page(num)" :class="num==page?'active':''">{{num}}</a>
                    <a v-show="next" @click="on_page(next)">下一页></a>
                </div>
            </div>

        </div>
        <div class="fl right-tag">
            <div class="block-btn">
                <p>来个匿名吐槽，发泄一下你心中的怒火吧！</p>
                <a class="sui-btn btn-block btn-share" href="./spit-submit.html" target="_blank">发吐槽</a>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>
<div class="footer">
    <div class="wrapper">
        <div class="footer-bottom">
            <div class="link">
                <dl>
                    <dt>
                        网站相关
                    </dt>
                    <dd>
                        关于我们
                    </dd>
                    <dd>
                        服务条款
                    </dd>
                    <dd>
                        帮助中心
                    </dd>
                    <dd>
                        编辑器语法
                    </dd>
                </dl>
                <dl>
                    <dt>
                        常用链接
                    </dt>
                    <dd>
                        传智播客
                    </dd>
                    <dd>
                        传智论坛
                    </dd>
                </dl>
                <dl>
                    <dt>
                        联系我们
                    </dt>
                    <dd>
                        联系我们
                    </dd>
                    <dd>
                        加入我们
                    </dd>
                    <dd>
                        建议反馈
                    </dd>
                </dl>
                <dl>
                    <dt>
                        关注我们
                    </dt>
                    <dd>
                        微博
                    </dd>
                    <dd>
                        twitter
                    </dd>
                </dl>
                <div class="xuke">
                    <h3>内容许可</h3>
                    <p>除特别说明外，用户内容均采用知识共享署名-非商业性使用-禁止演绎4.0 国际许可协议 (CC BY-NC-ND 4.0) 进行许可</p>
                    <p>本站由 传智研究院 提供更新服务</p>
                </div>
            </div>
            <p class="Copyright">Copyright &copy; 2017 传智问答社区 当前版本 0.0.1</p>
        </div>
    </div>
</div>
<script src="./js/vue-2.5.16.js"></script>
<script src="./js/axios-0.18.0.min.js"></script>
<script src="./js/jquery-1.12.4.min.js"></script>
<script src="./js/layer/layer.js"></script>
<script src="./js/base.js"></script>
<script src="./js/spit-index.js"></script>
<script type="text/javascript">
    $('#nav').load('/base_nav.html')
</script>
</body>
</html>
